import inspect
import sys
from typing import AnyStr

import arrow
from requests import Session
from utils.common_sydr import reqMethod


# /courseapi/energy/front/mainInfo
def mainInfo(uri:AnyStr,data,session:Session):
    argsPosition = {"body": "str"}
    return reqMethod(uri, data, session, "post", argsPosition)


# /courseapi/goodsUser/front/page
def pageGoods(uri:AnyStr,data,session:Session):
    argsPosition = {"body": "str"}
    return reqMethod(uri, data, session, "post", argsPosition)


# /courseapi/goodsUser/front/getById
def getById(uri:AnyStr,data,session:Session):
    argsPosition = {"uri": "dict"}
    return reqMethod(uri, data, session, "get", argsPosition)


# /courseapi/goodsUser/front/exchange
def exchange(uri:AnyStr,data,session:Session):
    argsPosition = {"body": "str"}
    return reqMethod(uri, data, session, "post", argsPosition)

# /courseapi/goodsUser/front/recordPage
def recordPage(uri:AnyStr,data,session:Session):
    argsPosition = {"body": "str"}
    return reqMethod(uri, data, session, "post", argsPosition)


# /courseapi/energy/front/rank
def rank(uri:AnyStr,data,session:Session):
    argsPosition = {"body": "str"}
    return reqMethod(uri, data, session, "post", argsPosition)


# /courseapi/userEnergyChargeRecord/front/energyDetail
def energyDetail(uri:AnyStr,data,session:Session):
    argsPosition = {"uri": "dict"}
    return reqMethod(uri, data, session, "get", argsPosition)

# /courseapi/studyCalenderUserConfig/front/setDailyTaskGoal
def setDailyTaskGoal(uri:AnyStr,data,session:Session):
    argsPosition = {"body": "str"}
    return reqMethod(uri, data, session, "post", argsPosition)


# /courseapi/energy/front/charge
def charge(uri:AnyStr,data,session:Session):
    argsPosition = {"body": "str"}
    return reqMethod(uri, data, session, "post", argsPosition)


# /courseapi/userStudyDateStatistics/front/detailByDate
def detailByDate(uri:AnyStr,data,studyDate,session:Session):
    argsPosition = {"body": "str"}
    L=[]
    L.append(studyDate)
    return reqMethod(uri, data, session, "post", argsPosition,L=L)


def noDynamicArgs_post(uri:AnyStr,data,session:Session):
    argsPosition = {"body": "str"}
    return reqMethod(uri, data, session, "post", argsPosition)